<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
%>
<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <title>试玩赚钱</title>
    <script type="text/javascript" src="<%=path %>/static/js/jquery.js"></script>
    <script type="text/javascript" src="<%=path %>/static/js/formview.js?v=1"></script>
    <script type="text/javascript" src="<%=path %>/static/js/tool.js"></script>
    <script type="text/javascript" src="<%=path %>/static/layer/layer.js"></script>
    <script type="text/javascript" src="js/js.js"></script>
    <link rel="stylesheet" type="text/css" href="css/css.css?v=7" />
</head>
<body style="background:#eceff4">
   <form id="form1">
      <ul class="demo_ul">
         <!--<li>
            <a href="demo_view.jsp">
               <div class="price">
                  +0.90元
               </div>
               <img src="images/demo_icon1.png" />
               <div class="text">
                  <div class="text1">
                     京东
                  </div>
                  <div class="text2">
                     18.23M<br>
                     低价不停，好货不断
                  </div>
               </div>
            </a>
         </li>
         <li>
            <a href="demo_view.jsp">
               <div class="price">
                  +1.50元
               </div>
               <img src="images/demo_icon2.png" />
               <div class="text">
                  <div class="text1">
                     淘宝
                  </div>
                  <div class="text2">
                     18.23M<br>
                     淘！我喜欢！
                  </div>
               </div>
            </a>
         </li>
         <li>
            <a href="demo_view.jsp">
               <div class="price">
                  +1.00元
               </div>
               <img src="images/demo_icon3.png" />
               <div class="text">
                  <div class="text1">
                     优酷视频
                  </div>
                  <div class="text2">
                     18.23M<br>
                     视频服务平台
                  </div>
               </div>
            </a>
         </li>
         <li>
            <a href="demo_view.jsp">
               <div class="price">
                  +0.50元
               </div>
               <img src="images/demo_icon4.png" />
               <div class="text">
                  <div class="text1">
                     爱奇艺
                  </div>
                  <div class="text2">
                     18.23M<br>
                     爱奇艺影视
                  </div>
               </div>
            </a>
         </li>
         <li>
            <a href="demo_view.jsp">
               <div class="price">
                  +1.30元
               </div>
               <img src="images/demo_icon5.png" />
               <div class="text">
                  <div class="text1">
                     搜狐新闻
                  </div>
                  <div class="text2">
                     18.23M<br>
                     掌握新鲜资讯
                  </div>
               </div>
            </a>
         </li>
         <li>
            <a href="demo_view.jsp">
               <div class="price">
                  +1.00元
               </div>
               <img src="images/demo_icon6.png" />
               <div class="text">
                  <div class="text1">
                     网易新闻
                  </div>
                  <div class="text2">
                     18.23M<br>
                     有态度的新闻客户端
                  </div>
               </div>
            </a>
         </li>-->
      </ul>
   </form>
   <script>
      $(function(){
         $.getJSON("<%=path %>/wechat/tool/getDemoList.htmls",{},function(data){

            var html="";
            $.each(data,function(i,item){
               html+="<li>";
               html+="<a href=\"demo_view.jsp?id="+item.id+"&uid=${param.uid}\">";
               html+="<div class=\"price\">+<span>"+item.price+"</span>元</div>";
               html+="<img src='"+item.picUrl1+"' />";
               html+="<div class=\"text\">";
               html+="<div class=\"text1\">"+item.name+"</div>";
               html+="<div class=\"text2\">"+item.size+"M<br>"+item.summary+"</div>";
               html+="</div>";
               html+="</a>";
               html+="</li>";
            });
            $(".demo_ul").html(html);
         });
      });
   </script>
</body>
</html>
